package com.hfy.kandian.service;

import com.hfy.kandian.dao.command.BookCommand;
import com.hfy.kandian.dao.representation.BookRepresentation;
import com.hfy.kandian.entity.Book;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HAN XIAOYANG
 * @since 2020-12-30
 */
public interface BookService extends IService<Book> {

    public int insertABook( BookCommand bookCommand);
    public BookRepresentation getBookById(int bookId);
    public List<BookRepresentation> getBookByKeyword(String keyword);


    int modifyBook(Book book);

    List showAllChapter(int bookId);

    String showTheContent(int bookId,String chapterName);

    List<String> showAllTags(int bookId);
}
